using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Net;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading;
using System.Windows.Forms;
using System.Xml.Linq;
using Styx;
using Styx.Helpers;
using Styx.Plugins;
using Styx.Plugins.PluginClass;
using Styx.WoWInternals;
using Styx.WoWInternals.Misc;
using Styx.WoWInternals.World;
using Styx.WoWInternals.WoWObjects;

namespace LightwellClicker
{
    public class LightwellClicker : HBPlugin
    {
		///Settings
		int minHealth = 95;
	
        public override void Pulse()
        {
            if (StyxWoW.IsInGame && StyxWoW.Me.Combat)
            {
				foreach (WoWUnit gunit in ObjectManager.GetObjectsOfType<WoWUnit>())
				{
                    if (gunit.Entry == 31897 && gunit.Distance < 20 && StyxWoW.Me.HealthPercent < minHealth)
					{
						gunit.Interact();
					}
				}
			}
		}
		
		public override string Name { get { return "Lightwell Clicker"; } }
			
		public override string Author { get { return "Lbniese"; } }
			
		public override Version Version { get { return new Version(0, 9, 0); } }
			
		public override bool WantButton { get { return false; } }
		
		public override void OnButtonPress()
		{
        
        }
			
	}
}